<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:83:"D:\php\www\12.74.103.73\gh_pcyy_cn\public/../application/index\view\Index\ansy.html";i:1648437087;s:74:"D:\php\www\12.74.103.73\gh_pcyy_cn\application\index\view\Common\head.html";i:1650521993;s:74:"D:\php\www\12.74.103.73\gh_pcyy_cn\application\index\view\Common\menu.html";i:1650522825;s:76:"D:\php\www\12.74.103.73\gh_pcyy_cn\application\index\view\Common\footer.html";i:1648437088;}*/ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico" >
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src='/index/lib/html5.js'></script>
    <script type="text/javascript" src="/index/lib/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/index/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="/index/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/index/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/index/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="/index/static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="/index/media.css" />
    <link rel="stylesheet" type="text/css" href="/index/yy/style.css" />
    <script type="text/javascript" src="/index/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="/index/lib/datatables/1.10.0/jquery.tablesorter.min.js"></script>
    <script type="text/javascript" src="/layer/layer.js"></script>

	<title>深圳鹏程</title>
    <!--[if IE 6]>
    <script type="text/javascript" src="/index/static/h-ui.admin/js/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <!--/meta 作为公共模版分离出去-->

    <style type="text/css">
        .menu>li>a{color:#000000;}
    </style>

    <!--_header 作为公共模版分离出去-->
    <header class="navbar-wrapper">
        <div class="navbar navbar-fixed-top">
            <div class="container-fluid cl"> <a class="logo navbar-logo f-l mr-10 hidden-xs" href="/index/Index/listdata">深圳鹏程医院</a> <a class="logo navbar-logo-m f-l mr-10 visible-xs" href="/index/Index/listdata">深圳鹏程医院</a>
                <span class="logo navbar-slogan f-l mr-10 hidden-xs">v2.0</span>
                <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>

                <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
                    <ul class="cl">
            <li class="dropDown dropDown_hover" id="hello"></li>
            <li class="dropDown dropDown_hover"> <a href="#" class="dropDown_A">退出 <i class="Hui-iconfont">&#xe6d5;</i></a>

                            <ul class="dropDown-menu menu radius box-shadow">
                                <li><a href="/index/Login/logout">切换账户</a></li>
                                <li><a href="/index/Set/updatepass">修改密码</a></li>
                                <li><a href="/index/Login/logout">退出</a></li>
                            </ul>
                        </li>

                        <li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
                            <ul class="dropDown-menu menu radius box-shadow">
                                <li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
                                <li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
                                <li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
                                <li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
                                <li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
                                <li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
                            </ul>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
    </header>
    <script type="text/javascript">
        $(function(){
            //console.log(getCookie("auth"));
            //显示当前用户用户名
            $("#hello").html(getCookie("auth").split("-")[0]);

            function getCookie(name) {
                var cookies = document.cookie;
                var list = cookies.split("; ");          // 解析出名/值对列表
                    for(var i = 0; i < list.length; i++) {
                    var arr = list[i].split("=");          // 解析出名和值

                         if(arr[0] == name)
                             return decodeURIComponent(arr[1]);   // 对cookie值解码
                         } 
                return "";
            }

        });
    </script>
    <!--/_header 作为公共模版分离出去-->

<style type="text/css">

</style>

<!--_menu 作为公共模版分离出去-->
<aside class="Hui-aside">

    <div class="menu_dropdown bk_2">
        <ul>
            <?php if(is_array($qx) || $qx instanceof \think\Collection || $qx instanceof \think\Paginator): $i = 0; $__LIST__ = $qx;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;                if($vo['p_content']){
                ?>
<li><a href="<?php echo $vo['p_action']; ?>" title="<?php echo $vo['p_content']; ?>"><?php echo $vo['p_content']; ?></a></li>
            <?php
                }
            endforeach; endif; else: echo "" ;endif; 				if(isMobile()){
            ?>
            <li><a href="/index/Set/updatepass">修改密码</a></li>
            <li><a href="/index/Login/logout">退出</a></li>
            <?php
                }
			?>
        </ul>
    </div>
</aside>

<script type="text/javascript">
    function showtc(){
        layer.open({
            title:"添加",
            type: 2,
            area: ['900px', '600px'],
            fixed: false, //不固定
            maxmin: true,
            content: '/index/Index/tcadd'
        });
    }

    $(function(){
        //设置弹窗按钮的链接
        //$("ul li").getAttribute("title");
        $(".bk_2 ul li a").each(function(i){
            //不可更改，屏幕太小，不显示分析按钮
           if(this.title=="添加"&&document.body.clientWidth>760){
               this.href="javascript:showtc()";
           }

            if(this.title=="统计"&&document.body.clientWidth<760){
                console.log($(this).css("display","none"));
            }

            if(this.title=="项目统计"&&document.body.clientWidth<760){
                console.log($(this).css("display","none"));
            }
		


        });
    });


</script>

<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
<!--/_menu 作为公共模版分离出去-->


<!--图表js-->


<script type="text/javascript" src="/index/echarts/echarts.min.js"></script>
<script type="text/javascript" src="/index/laydate/laydate.js"></script>
<style type="text/css">
    *{font-size: 15px!important;}
    .select{
        width:200px;
        height:40px;
        position: relative;
        top: 2px;
    }
    .date_range{
        padding-left: 10px;
        height: 38px;
        min-width: 262px;
        line-height: 38px;
        border: 1px solid #e6e6e6;
        background-color: #fff;
        border-radius: 2px;
    }
    #ansy_main{
        width: 1300px;
        position: relative;
        left: 13%;
        top: 50px;
        height: 800px;
    }
    #main{
        float: left;
    }
    #ansy_bt{
        width: 72px;
        height: 35px;
        position: relative;
        left: 20px;
    }
    #zhexian{
        float: left;
    }
    .xz{
        width:100%;
        height:150px;
    }
</style>

<section class="Hui-article-box">
    <div id="ansy_main">
        <div class="xz">
            <span style="margin-left: 250px;">筛选条件：</span>
            <input type="text" class="date_range" placeholder="请选择日期范围" id="test1">
            <select class="select valid fromtype" size="1" name="city" style="display: none;">
                <option value="" selected="">请选择类型</option>
                <option value="渠道">渠道</option>
                <option value="项目">项目</option>
            </select>
            <select class="select valid maptype" size="1" name="city" style="display: none;">
                <option value="" selected="">请选择类型</option>
                <option value="折线图">折线图</option>
                <option value="圆饼图">圆饼图</option>
            </select>
            <input class="btn btn-success radius" id="ansy_bt" type="button" value="生成">
        </div>
        <div id="main" style="width: 600px;height:400px;"></div>
        <div id="zhexian" style="width: 600px;height:400px;"></div>
    </div>
</section>





<script>
    //执行一个laydate实例
    laydate.render({
        elem: '#test1', //指定元素
        range: true
    });

    $("#ansy_bt").on('click',function(){
        date_range = $('.date_range').val();
        //from_type = $('.fromtype').val();
        from_type = "渠道";
        //map_type = $('.maptype').val();
        map_type = "圆饼图";

        console.log(date_range);


        $.post("/index/Index/ansyfrom",{"date_range":date_range,"from_type":from_type,"map_type":map_type},function(e){
            console.log(eval('(' + e + ')'));

            obj = eval('(' + e + ')');

            console.log(obj['pie']);
            console.log(obj['zx']);
            //调用生成函数
            xutuo(eval('(' + obj['pie'] + ')'),eval('(' + obj['zx'] + ')'));
        });


    });

</script>


<script type="text/javascript">


    //生成图像js，需要传入参数；
function xutuo(data,zxdata){
    var myChart = echarts.init(document.getElementById('main'));
    option = data;
    myChart.setOption(option);


    var zx_myChart = echarts.init(document.getElementById('zhexian'));
    zx_option = zxdata;
    zx_myChart.setOption(zx_option);

}

    </script>

<!--_footer 作为公共模版分离出去-->

<script type="text/javascript" src="/index/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/index/static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="/index/static/h-ui.admin/js/H-ui.admin.page.js"></script>
<script type="text/javascript" src="/index/js/hd.js"></script>

<!--/_footer /作为公共模版分离出去-->
